package com.gl.emms.whale.util;

import java.util.Calendar;

public class TimeTools {
	/**
	 * 检查是否存在SDCard
	 * @return
	 */

	/** 
	 * 得到几天前的时间 
	 * @param d 
	 * @param day 
	 * @return 
	 */  
	public static Calendar getDateBefore(Calendar d,int day){  
		d.set(Calendar.DATE,d.get(Calendar.DATE)-day);  
		return d;  
	}


}
